@use './theme.scss' as *;

// 覆盖element的变量和属性
:root{
  --el-menu-item-height: 50px !important;
}

.el-icon{
  vertical-align: bottom;
}

.el-overlay{
  background: #0003;
}

.el-popper.is-light{
  border: 0;
}

.el-menu--vertical .el-menu--popup .el-menu-item{
  margin: 0;

  &.is-active::before{
        inset: 5px;
    }
}

.el-menu--popup {
  padding: 0 !important;
  background-color: var(--menu-inner-bg) !important;

  .el-menu-item{
    margin: 5px;
    color: #fefefea6;
    border-radius: 3px;

    i,
    span {
      z-index: 1;
    }

    &.is-active{
      &::before {
        position: absolute;
        inset: 0;
        content: '';
        background-color: var(--el-color-primary);
        border-radius: 3px;
      }
    }
  }

  .el-menu-item, .el-sub-menu .el-sub-menu__title{
    background-color: var(--menu-inner-bg) !important;

    &:hover{
      color: #fff !important;
    }
  }
}

.el-scrollbar__view{
  height: 100%;
}